home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 6 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.3 KB  |  38 lines

  1. Path: in2.uu.net!bounce-back
  2. Date: 04 Jan 96 14:18:19 GMT
  3. Approved: fjh@cs.mu.oz.au
  4. Organization: -
  5. Newsgroups: comp.std.c++
  6. X-Original-Date: Thu, 4 Jan 1996 10:06:27 +0100 (MET)
  7. From: Kresimir.Fresl@public.srce.hr (Kresimir Fresl - Grad.fak.)
  8. Message-ID: <199601040906.KAA11345@jagor.srce.hr>
  9. Subject: Question about `binary_search()'
  10. Cc: Kresimir.Fresl@public.srce.hr
  11. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  12.     iQBFAgUBMOvhwuEDnX0m9pzZAQEe4QF/dEz8iWA8k6r/aKlHPeesNNzC2j72x5RL
  13.     ZVwwamR6AXCOORF5/EnsP57oD0AqgRsb
  14.     =9CPE
  15.  
  16. Sorry. In my yesterday's posting:
  17.  
  18. > I have a question concerning STL function `binary_search()'.
  19. >
  20. > Why is the return value of type `bool', and not (template) `ForwardIterator'
  21. > (function `find', for example, returns `InputIterator'). I can't imagine
  22. > situation where someone would like to know if something is in container,
  23. > but also the location of this something. 
  24.  
  25. last row should be:
  26.  
  27. ``but __not__ also the location of this something.''
  28.  
  29. ---
  30. Kresimir Fresl
  31. Faculty of Civil Engineering
  32. Zagreb, Croatia
  33. email: Kresimir.Fresl@public.srce.hr
  34. ---
  35. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  36.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  37.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  38.